// folktale 中的 compose、curry
import lambda from "folktale/core/lambda/index.js";
const { compose, curry } = lambda;
import fp from "lodash/fp.js";
const { toUpper, first } = fp;

// let f = curry(2, (x, y) => {
//   return x + y;
// });
// console.log(f(1, 2), f(1)(2));

let f = compose(toUpper, first);
console.log(f(["one", "two"]));
